package com.wanxi.education.model.vo.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * order
 *
 * @author
 */
@Data
@ApiModel(value = "前端用户查询订单详情vo类")
public class OrderFindByIdVo {
    /**
     * 主键
     */
    @ApiModelProperty(value = "订单主键", required = true)
    private Long id;

    /**
     * 订单状态
     * 0已完成，1已取消，2未支付
     */
    @ApiModelProperty(value = "订单状态", required = true)
    private Integer orderState;

    /**
     * 课程id
     */
    @ApiModelProperty(value = "课程id", required = true)
    private Long courseId;

    /**
     * 课程名称
     */
    @ApiModelProperty(value = "课程名称", required = true)
    private String courseName;

    /**
     * 学习时长
     */
    @ApiModelProperty(value = "课程时长", required = true)
    private Integer studyLength;

    /**
     * 证书名称
     */
    @ApiModelProperty(value = "证书名称", required = true)
    private String certificateName;

    /**
     * 订单价格
     */
    @ApiModelProperty(value = "订单金额", required = true)
    private BigDecimal price;

    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号", required = true)
    private String orderNumber;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "下单时间", required = true)
    private Date createTime;

    /**
     * 支付方式
     * 1微信，2暂未进行支付，0表示主动取消，-1表示超时未支付自动取消
     */
    @ApiModelProperty(value = "支付方式，1微信，2暂未进行支付，0表示主动取消，-1表示超时未支付自动取消", required = true)
    private Integer paymentMethod;

}